package com.ship.dispatch.service;

import com.ship.common.business.service.BaseService;
import com.ship.common.core.web.domain.JsonResult;
import com.ship.dispatch.bean.TzFuelReport;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ship.dispatch.bo.TzFuelReportSumBo;

import java.util.List;

/**
* @author zhangyh
* @description 针对表【tz_fuel_report(燃油台账加油记录信息)】的数据库操作Service
* @createDate 2024-06-17 11:31:53
*/
public interface TzFuelReportService extends BaseService<TzFuelReport> {

    /**
     * 新增
     * @param dto
     * @return
     */
    JsonResult add(TzFuelReport dto);

    /**
     * 台账汇总查询
     * @param dto
     * @return
     */
    JsonResult<List<TzFuelReportSumBo>> getSummaryList(TzFuelReport dto);

    /**
     * 编辑
     * @param dto
     * @return
     */
    JsonResult dataUpdate(TzFuelReport dto);

    /**
     * 删除
     * @param id
     * @return
     */
    JsonResult dataDelete(Long id);

    /**
     * 删除审批流程回调
     * @param businessKey
     * @return
     */
    void dataDeleteRollback(String businessKey,int status);
}
